package com.brokendust.client.config.module.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.util.ArrayList;
import java.util.List;

public class ActionJson {
    List<String> action_list;

    public ActionJson() {
        this.action_list = new ArrayList<String>();
    }

    public ActionJson(List<String> action_list) {
        this.action_list = new ArrayList<String>();
        this.action_list = action_list;
    }

    public static ActionJson readJSON(String string) {
        GsonBuilder builder = new GsonBuilder();
        Gson gson = builder.create();
        return gson.fromJson(string, ActionJson.class);
    }

    public List<String> getAction_list() {
        return this.action_list;
    }

    public void setAction_list(List<String> action_list) {
        this.action_list = action_list;
    }
}
